<div class="conferencereports view">
<h2><?php echo __('Conferencereport'); ?></h2>
<table width="100%">
  <tr>
    <td width="15%" align="right">Со студентами (да/нет)</td>
    <td width="2%" align="right">&nbsp;</td>
    <td width="45%"><?php  echo $conferencereport['Conferencereport']['with_students']; ?>
	</td>
  </tr>
  <tr>
    <td width="15%" align="right">Тип конференции</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php  echo $conferencereport['Conferencetype']['name']; ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Уровень конференции</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php  echo $conferencereport['Conferenceleveltype']['name']; ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Название конференции</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php  echo $conferencereport['Conferencereport']['conference_name']; ?></td>
  </tr>
  <tr>
    <td align="right">Начало конференции</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php  echo $conferencereport['Conferencereport']['begindate']; ?></td>
  </tr>
  <tr>
    <td align="right">Окончание конференции</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php  echo $conferencereport['Conferencereport']['enddate']; ?></td>
  </tr>
  <tr>
    <td align="right">Место проведения конференции</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php  echo $conferencereport['Conferencereport']['conference_place']; ?></td>
  </tr>
  <tr>
    <td align="right">Тип доклада</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php  echo $conferencereport['Conferencereporttype']['name']; ?></td>
  </tr>  
  <tr>
    <td align="right">Название доклада</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php  echo $conferencereport['Conferencereport']['report_name']; ?></td>
  </tr>
  </tr>
     <tr>
    <td align="right">Статус записи</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php  echo $conferencereport['Recstatus']['name']; ?></td>
  </tr> 
    <tr>
    <td align="right">Авторы</td>
    <td align="right">&nbsp;</td>
    <td>
    	<?php 
    		// debug ($authors);
    		foreach ($authors as $author):
    			echo $author['fio'].' ';
    			if (!empty($author['linkid'])) {
    				echo $this->Form->postLink(__('Delete'), array('controller' => 'authorlinks', 'action' => 'delete', $author['linkid']), array('target' =>'_blank'), __('Are you sure you want to delete # %s?', $author['fio'])); 
    			}
    			echo '<br />';
    		endforeach;
    	
    	?>
    </td>
  </tr>   
  </table>
</div>

<br />
<div>
<?php echo $this->Form->create('Conferencereport', array('action' => 'edit')); ?>
	<fieldset><legend><?php echo __('Изменить запись'); ?></legend>
	<?php 
		echo $this->Form->hidden('id', array('value' => $conferencereport['Conferencereport']['id']));
		echo $this->Form->hidden('doedit', array('value' => 1));
		echo $this->Form->end(__('Submit')); 
	?>
	</fieldset>
	<br />
<?php echo $this->Form->create('Authorlink', array('action' => 'add', 'target' => '_blank')); ?>
	<fieldset>
		<legend><?php echo __('Добавить соавтора'); ?></legend>
	<?php
		$options = array('1' => 'Преподаватель КГМУ', '2' => 'Студент КГМУ', '3' => 'Внешний автор');
		$attributes = array('legend' => false, 'label' => '');
		echo $this->Form->radio('authortype_id', $options, $attributes);
		echo $this->Form->hidden('recordtype_id', array('value' => $recordtype_id));
		echo $this->Form->hidden('recordid', array('value' => $conferencereport['Conferencereport']['id']));
		echo $this->Form->hidden('doadd', array('value' => '1'));
	?>
	</fieldset>
	<br />
<?php echo $this->Form->end(__('Submit')); ?>
	<br />
<?php echo $this->Form->create('Conferencereport', array('action' => 'delete')); ?>
	<fieldset><legend><?php echo __('Удалить запись'); ?></legend>
	<?php 
		echo $this->Form->hidden('id', array('value' => $conferencereport['Conferencereport']['id']));
		echo $this->Form->end(__('Submit')); 
	?>
	</fieldset>
	<br />

</div>	


